//
//  HomeDiveceViewModel.swift
//  DaRings
//
//  Created by 尹琼 on 2022/10/28.
//

import UIKit
import MYModule
import RxCocoa
import RxSwift

public class HomeDeviceViewModel: HomeBaseViewModel {
    
    public var addDeviceRelay =  BehaviorRelay<Bool>(value: false)
    
    public let modelRelay: BehaviorRelay<HomeDeviceModel>
    
    public required init() {
        
        
        addDeviceRelay.accept(BluetoothManager.shared.deviceState == .connected)
        
        let model = HomeDeviceModel()
        modelRelay = BehaviorRelay<HomeDeviceModel>(value: model)
        super.init(cellType: .device)
    }
    


}
